dispatch

abstract fun dispatch(event: KeyPressed)

Dispatches the key pressed event to the currently focused element on the loaded web page.

Parameters

event

the key pressed event

Throws

when the browser is already closed


abstract fun dispatch(event: KeyReleased)

Dispatches the key released event to the currently focused element on the loaded web page.

Parameters

event

the key released event

Throws

when the browser is already closed


abstract fun dispatch(event: KeyTyped)

Dispatches the key typed event to the currently focused element on the loaded web page.

Parameters

event

the key typed event

Throws

when the browser is already closed


abstract fun dispatch(event: MousePressed)

Dispatches the mouse pressed event to the currently loaded web page.

Parameters

event

the mouse pressed event

Throws

when the browser is already closed


abstract fun dispatch(event: MouseReleased)

Dispatches the mouse released event to the currently loaded web page.

Parameters

event

the mouse released event

Throws

when the browser is already closed


abstract fun dispatch(event: MouseEntered)

Dispatches the mouse entered event to the currently loaded web page.

Parameters

event

the mouse entered event

Throws

when the browser is already closed


abstract fun dispatch(event: MouseExited)

Dispatches the mouse exited event to the currently loaded web page.

Parameters

event

the mouse exited event

Throws

when the browser is already closed


abstract fun dispatch(event: MouseDragged)

Dispatches the mouse dragged event to the currently loaded web page.

Parameters

event

the mouse dragged event

Throws

when the browser is already closed


abstract fun dispatch(event: MouseMoved)

Dispatches the mouse moved event to the currently loaded web page.

Parameters

event

the mouse moved event

Throws

when the browser is already closed


abstract fun dispatch(event: MouseWheel)

Dispatches the mouse wheel event to the currently loaded web page.

Parameters

event

the mouse wheel event

Throws

when the browser is already closed


abstract fun dispatch(event: TouchStarted)

Dispatches the touch started event to the currently loaded web page.

Touch forwarding is not supported on macOS.

Since

8.0.0

Parameters

event

the touch started event

Throws

when the browser is already closed


abstract fun dispatch(event: TouchMoved)

Dispatches the touch moved event to the currently loaded web page.

To dispatch the touch moved event, you must first fire a touch started event on the touch point with the same identifier.

Touch forwarding is not supported on macOS.

Since

8.0.0

Parameters

event

the touch moved event

Throws

when the browser is already closed


abstract fun dispatch(event: TouchEnded)

Dispatches the touch ended event to the currently loaded web page.

To dispatch the touch ended event, you must first fire a touch started event on the touch point with the same identifier.

Touch forwarding is not supported on macOS.

Since

8.0.0

Parameters

event

the touch ended event

Throws

when the browser is already closed


abstract fun dispatch(event: TouchCanceled)

Dispatches the touch canceled event to the currently loaded web page.

To dispatch the touch canceled event, you must first fire a touch started event on the touch point with the same identifier.

Touch forwarding is not supported on macOS.

Since

8.0.0

Parameters

event

the touch canceled event

Throws

when the browser is already closed